#!/usr/bin/python
# -*- coding: utf-8 -*-

class Dog(object):
    def __init__(self, n):
        self.age = n

    def info_print(self):
        print(self.age)


result = Dog(5)
print(result.age)
result.info_print()


#类不能访问实例属性
print(Dog.age)



